package com.wlps.vo.sendcenter.commodity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/8/9
 */
@ApiModel(value = "商品创建Vo")
@Data
public class CommodityAddVo {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "商品编号")
    @NotNull(message="必须填商品编号")
    private Long commodityCode;

    @ApiModelProperty(value = "一级分类名称")
    @NotNull(message="必须填一级分类名称")
    @NotBlank(message="一级分类名称不能为空")
    private String firstClassification;

    @ApiModelProperty(value = "二级分类名称")
    @NotNull(message="必须填二级分类名称")
    @NotBlank(message="二级分类名称不能为空")
    private String secondClassification;

    @ApiModelProperty(value = "计量单位")
    private String unitofmeasurement;

    @ApiModelProperty(value = "单价")
    private Double unitPrice;

    @ApiModelProperty(value = "金额")
    private Double amount;

    @ApiModelProperty(value = "折扣")
    private Double discount;

    @ApiModelProperty(value = "商品名称")
    @NotNull(message="必须填商品名称")
    @NotBlank(message="商品名称不能为空")
    private String productName;

    @ApiModelProperty(value = "商品说明")
    @NotNull(message="必须填商品说明")
    @NotBlank(message="商品说明不能为空")
    private String productDesccription;

    @ApiModelProperty(value = "库存量")
    private Long inventory;

    @ApiModelProperty(value = "成本价")
    private Double costPrice;

    @ApiModelProperty(value = "型号")
    @NotNull(message="必须填型号")
    @NotBlank(message="型号不能为空")
    private String model;

    @ApiModelProperty(value = "供应商")
    @NotNull(message="必须填供应商")
    @NotBlank(message="供应商不能为空")
    private String supplier;

    @ApiModelProperty(value = "厂商")
    @NotNull(message="必须填厂商")
    @NotBlank(message="厂商不能为空")
    private String vendor;

    @ApiModelProperty(value = "可否退货")
    private Boolean isReturn;

    @ApiModelProperty(value = "保质期限")
    @NotNull(message="必须填保质期限")
    private Date shelfLife;

    @ApiModelProperty(value = "可否换货")
    private Boolean isExchange;

    @ApiModelProperty(value = "备注")
    private String remark;


}
